package com.lancer.cloud.generator.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lancer.cloud.common.base.mapper.BaseMapper;
import com.lancer.cloud.generator.model.entity.TableInfo;
import com.lancer.cloud.generator.model.query.TableInfoQuery;
import org.apache.ibatis.annotations.Param;

/**
 * caijinbang
 * @date 2019-06-16 14:58
 */
public interface TableInfoMapper extends BaseMapper<TableInfo> {


    /**
     * 分页查询表信息
     * @param condition
     * @return
     */
    IPage<TableInfo> findPageByCondition(TableInfoQuery condition);


    /**
     * 查询单个表信息
     * @param tableName
     * @return
     */
    TableInfo findTableInfoByName(@Param("tableName") String tableName);

}
